// 阅读文件页面
import 'package:flutter_full_pdf_viewer/flutter_full_pdf_viewer.dart';
import 'package:sharing/model/book.dart';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'dart:io';
import 'package:path_provider/path_provider.dart';
import 'package:sharing/net/ris_read_apis.dart';
import 'package:sharing/utils/whole_apis.dart';


class ReadPdfFileWidget extends StatefulWidget {
  final Book book;
  final String pdfPath;

  ReadPdfFileWidget({Key key, @required this.book,@required this.pdfPath}) :super(key: key);

  @override
  _ReadPdfFileWidgetState createState() => _ReadPdfFileWidgetState();
}

class _ReadPdfFileWidgetState extends State<ReadPdfFileWidget> {




  @override
  void initState() {
    // TODO: implement initState
    super.initState();

  }
  @override
  Widget build(BuildContext context) {
    return PDFViewerScaffold(
      appBar: AppBar(
        title: Text(widget.book.name),
      ),
      path: widget.pdfPath,
    );
  }
}
